//
//  news.h
//  ios_news
//
//  Created by Han on 14-6-11.
//  Copyright (c) 2014年 ucoder. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface NewsDetail : NSObject

@property (nonatomic, assign) NSUInteger nid;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *date;
@property (nonatomic, strong) NSString *body;
@property (nonatomic, strong) NSArray  *newsRelated;


- (instancetype)initWithAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)getDataWithBlock:(void (^)(NewsDetail *posts, NSError *error))block :(NSString *) url;

//+ (NSArray *)loadData: (NSString *)url;

@end
